import { Plugin } from "../../core";
import { ChangeEvent, ReactElement } from "react";

export interface RenderOpenProps {
  onClick: (e: ChangeEvent<HTMLInputElement>) => void;
}

export interface OpenProps {
  children?: (props: RenderOpenProps) => ReactElement;
}

export interface OpenPlugin extends Plugin {
  Open: (props: OpenProps) => ReactElement;
  OpenButton: () => ReactElement;
  OpenMenuItem: () => ReactElement;
}
